@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/vip/user_edit.js"]}){
<form id="userForm" lay-filter="userForm" class="layui-form model-form">
    <input name="id" value="${tbUser.id}" type="hidden"/>
    <input name="account" type="hidden"/>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="nickname" value="${tbUser.nickname}" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="password" value="${tbUser.password}" type="password" class="layui-input" lay-verify="required|psw" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">重复密码<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="rePassword" placeholder="请输入重复密码" type="password" class="layui-input" lay-verify="required|repsw" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="email" value="${tbUser.email}" type="text" class="layui-input" lay-verify="required|email" required />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block">
            <input type="radio" name="gender" value="1" title="男" checked="${1==tbUser.gender?true:false}"/>
            <input type="radio" name="gender" value="0" title="女" checked="${0==tbUser.gender?true:false}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">等级<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input type="radio" name="usergrade" value="0" title="普通" checked="${0==tbUser.usergrade?true:false}"/>
            <input type="radio" name="usergrade" value="1" title="会员" checked="${1==tbUser.usergrade?true:false}"/>
            <input type="radio" name="usergrade" value="2" title="经销商" checked="${2==tbUser.usergrade?true:false}"/>
            <input type="radio" name="usergrade" value="3" title="总经销" checked="${3==tbUser.usergrade?true:false}"/>
            <input type="radio" name="usergrade" value="5" title="股东" checked="${4==tbUser.usergrade?true:false}"/>
        </div>
        </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机</label>
        <div class="layui-input-block">
            <input name="mobile" value="${tbUser.telephone}" type="text" class="layui-input"/>
        </div>
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}
